<template>
  <w-leaf :text="data.text" :key="data.id" :expanded="data.expanded" :box-sync="true" :data="data">
    <template #box>
      <w-triplebox name="selectItem" :value="data.id"/>
    </template>
    <x-leaf v-for="item in data.children" :key="item.id" :data="item"></x-leaf>
  </w-leaf>
</template>
<script>
  export default {
    name: 'x-leaf',
    props: ['data'],
  }
</script>

